<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
      th:replace="~{admin/layout :: html(title=${title}, content=~{::content})}">
<head>
    <title>仪表盘</title>
</head>
<body>
    <div th:fragment="content">
        <div class="alert alert-success">
            欢迎来到扶贫助农电商平台后台管理系统！
        </div>
        
        <div class="row">
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title">产品总数</h5>
                        <p class="card-text" th:text="${productCount}">100</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title">新闻总数</h5>
                        <p class="card-text" th:text="${newsCount}">50</p>
                    </div>
                </div>
            </div>
             <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title">公告总数</h5>
                        <p class="card-text" th:text="${announcementCount}">10</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 